<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en" xml:lang="en">
<head>
<title>linuxnote</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="generator" content="Org-mode"/>
<meta name="generated" content="2011-07-23 12:45:50 CST"/>
<meta name="author" content="Hu Wenbiao"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<style type="text/css">
 <!--/*--><![CDATA[/*><!--*/
  html { font-family: Times, serif; font-size: 12pt; }
  .title  { text-align: center; }
  .todo   { color: red; }
  .done   { color: green; }
  .tag    { background-color: #add8e6; font-weight:normal }
  .target { }
  .timestamp { color: #bebebe; }
  .timestamp-kwd { color: #5f9ea0; }
  p.verse { margin-left: 3% }
  pre {
	border: 1pt solid #AEBDCC;
	background-color: #F3F5F7;
	padding: 5pt;
	font-family: courier, monospace;
        font-size: 90%;
        overflow:auto;
  }
  table { border-collapse: collapse; }
  td, th { vertical-align: top; }
  dt { font-weight: bold; }
  div.figure { padding: 0.5em; }
  div.figure p { text-align: center; }
  .linenr { font-size:smaller }
  .code-highlighted {background-color:#ffff00;}
  .org-info-js_info-navigation { border-style:none; }
  #org-info-js_console-label { font-size:10px; font-weight:bold;
                               white-space:nowrap; }
  .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
                                 font-weight:bold; }
  /*]]>*/-->
</style><link rel="stylesheet" href="/home/huwenbiao/note/Publish/style/emacs.css" type="text/css"/>
<script type="text/javascript">
<!--/*--><![CDATA[/*><!--*/
 function CodeHighlightOn(elem, id)
 {
   var target = document.getElementById(id);
   if(null != target) {
     elem.cacheClassElem = elem.className;
     elem.cacheClassTarget = target.className;
     target.className = "code-highlighted";
     elem.className   = "code-highlighted";
   }
 }
 function CodeHighlightOff(elem, id)
 {
   var target = document.getElementById(id);
   if(elem.cacheClassElem)
     elem.className = elem.cacheClassElem;
   if(elem.cacheClassTarget)
     target.className = elem.cacheClassTarget;
 }
/*]]>*///-->
</script>
</head>
<body>
<div id="content">
<div id="org-div-home-and-up" style="text-align:right;font-size:70%;white-space:nowrap;">
 <a accesskey="h" href="index.html"> UP </a>
 |
 <a accesskey="H" href="index.html"> HOME </a>
</div>

<h1 class="title">linuxnote</h1>


<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1 Shell命令无法补全： </a></li>
<li><a href="#sec-2">2 bmpanel2 (bmpanel) 不能获取桌面名字 </a></li>
<li><a href="#sec-3">3 tilda </a></li>
<li><a href="#sec-4">4 mplayer播放mkv </a></li>
<li><a href="#sec-5">5 nautilus右击菜单里的压缩和解压文件的软件是file-roller </a></li>
<li><a href="#sec-6">6 查看本机汉字字体 </a></li>
<li><a href="#sec-7">7 查看按键编码 </a></li>
<li><a href="#sec-8">8 使用wireshark </a></li>
<li><a href="#sec-9">9 使用plymouth </a></li>
<li><a href="#sec-10">10 放置xsessions的地方 </a></li>
<li><a href="#sec-11">11 rxvt中文输入问题 </a></li>
<li><a href="#sec-12">12 在.fvwm口不能出现名为config的文件夹 </a></li>
<li><a href="#sec-13">13 color gcolor2 </a></li>
<li><a href="#sec-14">14 让FvwmPager不显示WindowListSkip风格的窗口 </a></li>
<li><a href="#sec-15">15 磁盘实用工具 </a></li>
<li><a href="#sec-16">16 正大的网盘客户端EverBox </a></li>
<li><a href="#sec-17">17 dpkg-reconfigure gdm </a></li>
</ul>
</div>
</div>

<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> Shell命令无法补全： </h2>
<div class="outline-text-2" id="text-1">

<p>好像是安装了pango*什么的就不能返回登录界面了，而且不能返回补全了。我将一些程序删除之后，能退回到登录界面但补全问题仍未解决，后来发现将 /etc/bash.bashrc 中的 # enable bash completion in interactive shells 下面的三句注释去掉。这时彩色还是没有。又有了另一个方法，将下面的东西写进家目录下的.bashrc中：
</p>


<p>
[ -z "$PS1" ] &amp;&amp; return
</p>
<p>
HISTCONTROL=ignoredups:ignorespace
</p>
<p>
shopt -s histappend
</p>
<p>
HISTSIZE=1000
HISTFILESIZE=2000
</p>
<p>
shopt -s checkwinsize
</p>
<p>
[ -x /usr/bin/lesspipe ] &amp;&amp; eval "$(SHELL=/bin/sh lesspipe)"
</p>
<p>
if [ -z "$debian<sub>chroot</sub>" ] &amp;&amp; [ -r /etc/debian<sub>chroot</sub> ]; then
debian<sub>chroot</sub>=$(cat /etc/debian<sub>chroot</sub>)
fi
</p>
<p>
case "$TERM" in
xterm-color) color<sub>prompt</sub>=yes;;
esac
</p>

<p>
if [ -n "$force<sub>color</sub><sub>prompt</sub>" ]; then
if [ -x /usr/bin/tput ] &amp;&amp; tput setaf 1 &gt;&amp;/dev/null; then
color<sub>prompt</sub>=yes
else
color<sub>prompt</sub>=
fi
fi
</p>
<p>
if [ "$color<sub>prompt</sub>" = yes ]; then
PS1='${debian<sub>chroot</sub>:+(<a href="#file:">file:</a> '
else
PS1='${debian<sub>chroot</sub>:+(<img src="ltxpng/linuxnote_9a50367cc02dac6cd1542e16519a2fa1fcff9447.png"/> '
fi
unset color<sub>prompt</sub> force<sub>color</sub><sub>prompt</sub>
</p>
<p>
case "$TERM" in
xterm*|rxvt*)
PS1="<img src="ltxpng/linuxnote_7c61fd85554d79d22fd498a8be5b64bcb7c93438.png"/>$PS1"
;;
*)
;;
esac
</p>
<p>
if [ -x <i>usr/bin/dircolors ]; then                 test -r ~</i>.dircolors &amp;&amp; eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls &ndash;color=auto'
</p>
<p>
alias grep='grep &ndash;color=auto'
alias fgrep='fgrep &ndash;color=auto'
alias egrep='egrep &ndash;color=auto'
fi
</p>
<p>
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
</p>

<p>
if [ -f ~/.bash<sub>aliases</sub> ]; then
. ~/.bash<sub>aliases</sub>
fi
</p>
<p>
if [ -f /etc/bash<sub>completion</sub> ] &amp;&amp; ! shopt -oq posix; then
. /etc/bash<sub>completion</sub>
fi
</p>
</div>

</div>

<div id="outline-container-2" class="outline-2">
<h2 id="sec-2"><span class="section-number-2">2</span> bmpanel2 (bmpanel) 不能获取桌面名字 </h2>
<div class="outline-text-2" id="text-2">

<p>在FVWM下bmpanel2不能获取桌面名字。经调试是在widget-desktops.c文件中的函数update<sub>desktops中这句</sub>
</p>
<p>
names = name = x<sub>get</sub><sub>prop</sub><sub>data</sub>(c, c-&gt;root, 
c-&gt;atoms[XATOM<sub>NET</sub><sub>DESKTOP</sub><sub>NAMES]</sub>,
c-&gt;atoms[XATOM<sub>UTF8</sub><sub>STRING]</sub>, 0);
</p>
<p>
发生了问题。解决办法，真接写入自己的桌面名字。如下：
//因为在FVWM下获取桌面名称有问题，直接写入名称
//
//names = name = x<sub>get</sub><sub>prop</sub><sub>data</sub>(c, c-&gt;root, 
//c-&gt;atoms[XATOM<sub>NET</sub><sub>DESKTOP</sub><sub>NAMES]</sub>,
//c-&gt;atoms[XATOM<sub>UTF8</sub><sub>STRING]</sub>, 0);
char name<sub>tmp</sub> <sup><a class="footref" name="fnr.1" href="#fn.1">1</a></sup> = "Network\0Main\0Multimedia\0Develop\0";
names = malloc(50*8);
for (i = 0; i &lt; 50; i++) {
names[i]=name<sub>tmp[i]</sub>;
}
name = names;
</p>
</div>

</div>

<div id="outline-container-3" class="outline-2">
<h2 id="sec-3"><span class="section-number-2">3</span> tilda </h2>
<div class="outline-text-2" id="text-3">

<p>一个不错的终端，可以用快捷键调出，隐藏。方便随时使用命令行。
</p></div>

</div>

<div id="outline-container-4" class="outline-2">
<h2 id="sec-4"><span class="section-number-2">4</span> mplayer播放mkv </h2>
<div class="outline-text-2" id="text-4">

<p>mplayer  -aid 1 -alang chi *.mkv
<a href="http://zhuaxia.com/item/439758360">http://zhuaxia.com/item/439758360</a>
</p>
</div>

</div>

<div id="outline-container-5" class="outline-2">
<h2 id="sec-5"><span class="section-number-2">5</span> nautilus右击菜单里的压缩和解压文件的软件是file-roller </h2>
<div class="outline-text-2" id="text-5">

</div>

</div>

<div id="outline-container-6" class="outline-2">
<h2 id="sec-6"><span class="section-number-2">6</span> 查看本机汉字字体 </h2>
<div class="outline-text-2" id="text-6">

<p>fc-list :lang=zh-cn|sed s/:.*//
</p></div>

</div>

<div id="outline-container-7" class="outline-2">
<h2 id="sec-7"><span class="section-number-2">7</span> 查看按键编码 </h2>
<div class="outline-text-2" id="text-7">

<p>xev
</p>
</div>

</div>

<div id="outline-container-8" class="outline-2">
<h2 id="sec-8"><span class="section-number-2">8</span> 使用wireshark </h2>
<div class="outline-text-2" id="text-8">

<p>要用Root权限
</p></div>

</div>

<div id="outline-container-9" class="outline-2">
<h2 id="sec-9"><span class="section-number-2">9</span> 使用plymouth </h2>
<div class="outline-text-2" id="text-9">

<p>sudo update-alternatives &ndash;config default.plymouth
sudo update-initramfs -u
</p></div>

</div>

<div id="outline-container-10" class="outline-2">
<h2 id="sec-10"><span class="section-number-2">10</span> 放置xsessions的地方 </h2>
<div class="outline-text-2" id="text-10">

<p>/usr/share/xsessions
/usr/local/share/xsessions
</p></div>

</div>

<div id="outline-container-11" class="outline-2">
<h2 id="sec-11"><span class="section-number-2">11</span> rxvt中文输入问题 </h2>
<div class="outline-text-2" id="text-11">

<p>URxvt.inputMethod:fcitx
</p></div>

</div>

<div id="outline-container-12" class="outline-2">
<h2 id="sec-12"><span class="section-number-2">12</span> 在.fvwm口不能出现名为config的文件夹 </h2>
<div class="outline-text-2" id="text-12">

</div>

</div>

<div id="outline-container-13" class="outline-2">
<h2 id="sec-13"><span class="section-number-2">13</span> color gcolor2 </h2>
<div class="outline-text-2" id="text-13">

</div>

</div>

<div id="outline-container-14" class="outline-2">
<h2 id="sec-14"><span class="section-number-2">14</span> 让FvwmPager不显示WindowListSkip风格的窗口 </h2>
<div class="outline-text-2" id="text-14">

<p>FvwmPager-Desker:UseSkipList
</p></div>

</div>

<div id="outline-container-15" class="outline-2">
<h2 id="sec-15"><span class="section-number-2">15</span> 磁盘实用工具 </h2>
<div class="outline-text-2" id="text-15">

<p>安装包是 gnome-disk-utility，启动命令是 palimpsest。
</p></div>

</div>

<div id="outline-container-16" class="outline-2">
<h2 id="sec-16"><span class="section-number-2">16</span> 正大的网盘客户端EverBox </h2>
<div class="outline-text-2" id="text-16">

<p>安装的目录是~/.wine/drive<sub>c</sub>/users/用户名/Local Settings/Application Data/EverBox。在cron中设置每周六同步。
</p></div>

</div>

<div id="outline-container-17" class="outline-2">
<h2 id="sec-17"><span class="section-number-2">17</span> dpkg-reconfigure gdm </h2>
<div class="outline-text-2" id="text-17">



</div>
</div>
<div id="footnotes">
<h2 class="footnotes">Footnotes: </h2>
<div id="text-footnotes">
<p class="footnote"><sup><a class="footnum" name="fn.1" href="#fnr.1">1</a></sup> FOOTNOTE DEFINITION NOT FOUND: 50
</p>
</div>
</div>
<div id="postamble">
<p class="author"> Author: Hu Wenbiao
<a href="mailto:linuxacm@gmail.com">&lt;linuxacm@gmail.com&gt;</a>
</p>
<p class="date"> Date: 2011-07-23 12:45:50 CST</p>
<p class="creator">HTML generated by org-mode 6.33x in emacs 23</p>
</div>
</div>
</body>
</html>
